#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/wait.h>


int main()
{
	const char* s1 = "hello printf\n";
	printf(s1);

	const char* s2 = "hello fprintf\n";
	fprintf(stdout, s2);

	const char* s3 = "hello fwrite\n";
	fwrite(s3, strlen(s3), 1, stdout);

	const char* s4 = "hello write\n";
	write(1, s4,strlen(s4));
	
	//创建子进程	
	fork();

	return 0;
}




























//int main()
//{
//	printf("hello world,hahaha...\n");
//	close(1);
//	return 0;
//}
